var objSel = null;
function somOpc(obj, sombrear) {
	if(objSel != null && objSel == obj) {
		return;
	}
	if(sombrear == true) {
		obj.style.border="1px #1d5da7 solid";
		obj.style.cursor="pointer";
	} else {
		obj.style.border="";
	}
}
function selOpc(obj,url) {
	if(objSel != null && objSel != obj) {
		objSel.style.border="";
	}
	objSel = obj;
	
	obtenerParametros();
	
	url = "popup.jsp?url="+url+"&"+obtenerParametros();
	
	var w = window.open(url, "prueba", "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no"); //, resizable=no, width=500, height=150
	//var w = window.open("www.google.com", "prueba", "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no"); //, resizable=no, width=500, height=150
	w.focus();
}
function obtenerParametros() {
	var param = "";
	try {
		var inps = document.getElementById("frm").getElementsByTagName("input");
		for ( var i = 0; i < inps.length; i++) {
			param += inps[i].name+"=" + inps[i].value+"&";
		}
	} catch (e) {}
	return param;
}